<template>
  <view class="content">
    <!-- #ifdef APP -->
    <text v-html="Data.Company_Profile_Main"></text>
    <!-- #endif -->
    <!-- #ifdef MP-WEIXIN -->
    <rich-text v-html="Data.Company_Profile_Main"></rich-text>
    <!-- #endif -->
  </view>
</template>

<script>
const app = getApp();
import { getTableInquiry } from "@/api/global.js";
export default {
  data() {
    return {
      Data: {},
      form: {
        Data: "company_profile",
        Primary_Key: "0",
        Primary_Key_Name: "Company_Profile_Type",
        Order_Key_Name: "Company_Profile_Date",
        Order_Desc: "1",
        page: 1,
        limit: 1,
      },
    };
  },
  onLoad() {
    this.getData(this.form);
  },
  methods: {
    async getData(data) {
      const res = await getTableInquiry({ data });
      if (res.Status == "success" && res.tableData.length == 1) {
        this.Data = res.tableData[0];
      }
    },
  },
};
</script>

<style lang="scss" scoped>
.content{
  padding: 20rpx;
  box-sizing: border-box;
}
</style>
